<template>
    <div>
        <div>
            <van-nav-bar title="商品详情"  left-arrow>
                <template #right>
                    <van-icon name="search" size="18" />
                </template>
            </van-nav-bar>
        </div>



    </div>
</template>

<script>
    import  axios from 'axios'
    export default {
        name: "goodsDetail",

        created() {
            //获取当前所点击的商品详情数据

            //接收上一个界面的数据
            var params =this.$route.params

            var id = params.id

            //需要所有点击的商品ID
            axios({
                url: "http://192.168.40.177:8008/api/product/detail/" + id,
                method: 'get'
            }).then(res =>{
                console.log(res)
            })
        }
    }
</script>

<style>

</style>